package org.csu.sei.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.csu.sei.common.BaseConstant;
import org.csu.sei.entity.Banner;

import java.util.List;

public interface IBannerService extends IService<Banner> {


    List<Banner> queryAll(boolean selectInviable);

    Banner queryBanner(Long id,BaseConstant.Status status);

    int insertBanner(Banner banner);

    int updateBanner(Banner banner);

    int deleteBanner(Long id);

    int changeOrder(List<Long> order);

    int changeStatus(Long id);

    int lastestOrder();

    int relateNews(Long id,Long newsId);

    // 获取所有的banner的数量
    int getCount();
}
